package com.marry.business.service.active;

import com.marry.business.domain.MlUser;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @path：com.marry.business.service.active.MlUserService.java
 * @className：MlUserService.java
 * @description：TODO
 * @author：LiuYun
 * @dateTime：2021/7/8 23:26
 * @editNote：
 */
public interface MlUserService {

    /**
     * 删除记录
     * @param user
     * @return
     */
    Mono<Void> delete(MlUser user);

    /**
     * 新增或者更新记录
     * @param record
     * @return
     */
    Mono<MlUser> save(MlUser record);

    /**
     * 查询记录详情
     * @param userId
     * @return
     */
    Mono<MlUser> detail(Long userId);

    /**
     * 查询记录详情
     * @param user
     * @return
     */
    Flux<MlUser> findAll(MlUser user);

    /**
     * 批量插入记录
     * @param list
     * @return
     */
    Flux<MlUser> batchInsert(Flux<MlUser> list);

}
